

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Train {
    private String trainNo;
    private String stationTrainCode;
    private String fromStationName;
    private String fromStationTelecode;
    private String fromStationTelecodeName;
    private String toStationName;
    private String toStationTelecode;
    private String toStationTelecodeName;

    private String trainStartTime;
    private String arriveTime;
    private String lishi;
    private String ypInfoDetail;

    private String[] leftSeat;
    private String date;

    public Map<String, String> toQueryMap() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("trainno", trainNo);
        map.put("station_train_code", stationTrainCode);
        map.put("from_station_name", fromStationName);
        map.put("from_station_telecode", fromStationTelecode);
        map.put("from_station_telecode_name", fromStationTelecodeName);
        map.put("to_station_name", toStationName);
        map.put("to_station_telecode", toStationTelecode);
        map.put("to_station_telecode_name", toStationTelecodeName);
        map.put("train_start_time", trainStartTime);
        map.put("arrive_time", arriveTime);
        map.put("lishi", lishi);
        map.put("ypInfoDetail", ypInfoDetail);
        map.put("train_date", date);
        map.put("round_train_date", new SimpleDateFormat("yyyy-MM-dd").format(new Date()));

        map.put("include_student", "00");
        map.put("round_start_time_str", "00:00--24:00");
        map.put("seattype_num", "");
        map.put("single_round_type", "1");
        map.put("start_time_str", "00:00--24:00");
        map.put("train_class_arr", "QB#D#Z#T#K#QT#");
        map.put("train_pass_type", "QB");

        return map;
    }

    public Map<String, String> toOrderMap() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("orderRequest.train_no", trainNo);
        map.put("orderRequest.station_train_code", stationTrainCode);
        map.put("orderRequest.from_station_name", fromStationName);
        map.put("orderRequest.from_station_telecode", fromStationTelecode);
        map.put("orderRequest.to_station_name", toStationName);
        map.put("orderRequest.to_station_telecode", toStationTelecode);
        map.put("orderRequest.start_time", trainStartTime);
        map.put("orderRequest.end_time", arriveTime);
        map.put("orderRequest.train_date", date);

        map.put("orderRequest.bed_level_order_num", "000000000000000000000000000000");
        map.put("orderRequest.cancel_flag", "1");
        map.put("orderRequest.id_mode", "Y");
        map.put("orderRequest.reserve_flag", "A");
        map.put("orderRequest.seat_type_code", "");
        map.put("orderRequest.ticket_type_order_num", "");

        return map;
    }

    public String getTrainNo() {
        return trainNo;
    }

    public void setTrainNo(String trainNo) {
        this.trainNo = trainNo;
    }

    public String getStationTrainCode() {
        return stationTrainCode;
    }

    public void setStationTrainCode(String stationTrainCode) {
        this.stationTrainCode = stationTrainCode;
    }

    public String getFromStationName() {
        return fromStationName;
    }

    public void setFromStationName(String fromStationName) {
        this.fromStationName = fromStationName;
    }

    public String getFromStationTelecode() {
        return fromStationTelecode;
    }

    public void setFromStationTelecode(String fromStationTelecode) {
        this.fromStationTelecode = fromStationTelecode;
    }

    public String getFromStationTelecodeName() {
        return fromStationTelecodeName;
    }

    public void setFromStationTelecodeName(String fromStationTelecodeName) {
        this.fromStationTelecodeName = fromStationTelecodeName;
    }

    public String getToStationName() {
        return toStationName;
    }

    public void setToStationName(String toStationName) {
        this.toStationName = toStationName;
    }

    public String getToStationTelecode() {
        return toStationTelecode;
    }

    public void setToStationTelecode(String toStationTelecode) {
        this.toStationTelecode = toStationTelecode;
    }

    public String getToStationTelecodeName() {
        return toStationTelecodeName;
    }

    public void setToStationTelecodeName(String toStationTelecodeName) {
        this.toStationTelecodeName = toStationTelecodeName;
    }

    public String getTrainStartTime() {
        return trainStartTime;
    }

    public void setTrainStartTime(String trainStartTime) {
        this.trainStartTime = trainStartTime;
    }

    public String getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(String arriveTime) {
        this.arriveTime = arriveTime;
    }

    public String getLishi() {
        return lishi;
    }

    public void setLishi(String lishi) {
        this.lishi = lishi;
    }

    public String getYpInfoDetail() {
        return ypInfoDetail;
    }

    public void setYpInfoDetail(String ypInfoDetail) {
        this.ypInfoDetail = ypInfoDetail;
    }

    public String[] getLeftSeat() {
        return leftSeat;
    }

    public void setLeftSeat(String[] leftSeat) {
        this.leftSeat = leftSeat;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

}
